package org.renhj.register;

public abstract class Register {

    private final static String PATH_SEPARATOR="/";

    String pathJoin(String... paths) {
        StringBuilder sb = new StringBuilder();
        for (String path : paths) {
            sb.append(PATH_SEPARATOR).append(path);
        }
        return sb.toString();
    }

    public abstract void register(String service, String address) throws Exception;

    public abstract void release(String service, String address) throws Exception;
}
